package com.xiaoming.service;

import com.xiaoming.properties.DemoProperties;

/**
 * 随便定一个service
 */
public class DemoService {

    private DemoProperties demoProperties;

    public DemoService(DemoProperties demoProperties) {
        this.demoProperties = demoProperties;
    }

    public void sayHello(){
        System.out.println("Hello,我是" + demoProperties.getName() +", 我的年龄为：" + demoProperties.getAge());
    }
}
